//导入工具类
import request from "@/utils/request";


//查询所有点赞评论
export const getAllNotice = () =>{
    return request.get("/notice");
}

//查询所有点赞评论
export const getAllNotic = (pageNum,pageSize) =>{
    let page = {
        pageNum:pageNum,
        pageSize:pageSize
    }
    return request.get("/notice/page",page);
}

//根据id查询用户
export const getUser = (id) =>{
    return request.get(`/user/${id}`);
}